package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        File dir = new File("./a/b/c/d");
        if (dir.exists()) {
            System.out.println("该目录已经存在");
        }else{
            if (dir.mkdirs()) {
                System.out.println("创建成功");
            }else{
                System.out.println("创建失败");
            }
        }
    }
}
